

package common.utils.annotations;

import org.apache.shiro.authz.annotation.Logical;

import java.lang.annotation.*;

/**
 * 操作权限注解
 *
 * @author
 */
@Target({ElementType.METHOD, ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Inherited
@Documented
public @interface PreAuthorize {

    /**
     * 权限名称
     *
     * @return
     */
    String[] value();

    /**
     * logical 权限之间的判断关系，默认为Logical.AND
     *
     * @return
     */
    Logical logical() default Logical.AND;

}
